using System;
using UnityEngine;

[Serializable]
public class enablenext : MonoBehaviour
{
	public GameObject next;

	public float wait;

	public enablenext()
	{
		wait = 0.8f;
	}

	public void nex()
	{
		next.active = true;
		gameObject.SetActive(false);
	}

	public void Main()
	{
		Invoke("nex", wait);
	}
}
